package ws;



import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collection;
import org.orm.PersistentException;
import org.orm.PersistentTransaction;
import com.google.gson.Gson;
import SOAPVO.AnotacionSOAPVO;

public class AnotacionSOAP {
	private static final int ROW_COUNT = 100;
	
	public String searchAnotacion(int idAnotacion) throws PersistentException {
		String data="";
		
		
		orm.DAOFactory lDAOFactory = orm.DAOFactory.getDAOFactory();
		orm.Tan_anotacion[] ormTan_anotacions = lDAOFactory.getTan_anotacionDAO().listTan_anotacionByQuery(null, null);
		int length = Math.min(ormTan_anotacions.length, ROW_COUNT);
		for (int i = 0; i < length; i++) {
			data.concat((ormTan_anotacions[i].getAn_descripcion()));
		}
		return data;
	}
}
